using System;
using System.Data;
using System.Data.SqlTypes;
using System.Data.SqlClient;

namespace DataEntity
{
	public class T_Report_SalesLink : DBInteractionBase
	{
		#region Class Member Declarations
			private SqlDateTime		_report_SalesLink_GiveHouseDate, _report_SalesLink_ContractDate, _report_SalesLink_BigDate, _report_SalesLink_LentDate, _report_SalesLink_ContractLoansDate, _report_SalesLink_ExchangeDate;
			private SqlInt32		_report_SalesLink_PropertyTypeID, _report_SalesLink_ExchangeTypeID, _report_Plan_Audit;
			private SqlDecimal		_report_SalesLink_ContractSumPrice, _report_SalesLink_LoanAmount, _report_SSalesLink_LentAmount, _report_SalesLink_ContractPrice, _report_SalesLink_BigSumPrice, _report_SalesLink_ContractArea, _report_SalesLink_BigPrice, _report_SalesLink_SalesArea, _report_SalesLink_OriginalContractPrice, _report_SalesLink_TotalReceipt, _report_SalesLink_Price, _report_SalesLink_Area, _report_SalesLink_RestHouse, _report_SalesLink_Margins, _report_SalesLink_OriginalArea, _report_SalesLink_OriginalPrice, _report_SalesLink_AgencyCost, _report_SalesLink_CancelComm;
			private SqlString		_report_SalesLink_SalesNames, _report_SalesLink_SalesNumber, _report_SalesLink_Departments, _report_SalesLink_Branches, _report_SalesLink_SellUnit, _report_SalesLink_Buyer, _report_SalesLink_Discount, _report_SalesLink_ReportNO, _report_SalesLink_Subscribe, _report_SalesLink_Operator, _report_SalesLink_PayType, _report_SalesLink_Tel, _report_SalesLink_CustomerAddress, _report_SalesLink_PostCode, _report_SalesLink_BarchSalse, _report_SalesLink_Variations, _report_SalesLink_IDNumber;
            private SqlGuid         _report_SalesLink_ID, _report_SalesLink_ProjectID;
		#endregion


		public T_Report_SalesLink()
		{
			// Nothing for now.
		}





		public override DataTable SelectAll()
		{
			SqlCommand	cmdToExecute = new SqlCommand();
			cmdToExecute.CommandText = "dbo.[sp_t_Report_SalesLink_SelectAll]";
			cmdToExecute.CommandType = CommandType.StoredProcedure;
			DataTable toReturn = new DataTable("t_Report_SalesLink");
			SqlDataAdapter adapter = new SqlDataAdapter(cmdToExecute);

			// Use base class' connection object
			cmdToExecute.Connection = _mainConnection;

			try
			{

				if(_mainConnectionIsCreatedLocal)
				{
					// Open connection.
					_mainConnection.Open();
				}
				else
				{
					if(_mainConnectionProvider.IsTransactionPending)
					{
						cmdToExecute.Transaction = _mainConnectionProvider.CurrentTransaction;
					}
				}

				// Execute query.
				adapter.Fill(toReturn);
				return toReturn;
			}
			catch(Exception ex)
			{
				// some error occured. Bubble it to caller and encapsulate Exception object
				throw new Exception("T_Report_SalesLink::SelectAll::Error occured.", ex);
			}
			finally
			{
				if(_mainConnectionIsCreatedLocal)
				{
					// Close connection.
					_mainConnection.Close();
				}
				cmdToExecute.Dispose();
				adapter.Dispose();
			}
		}


		#region Class Property Declarations
		public SqlGuid Report_SalesLink_ID
		{
			get
			{
				return _report_SalesLink_ID;
			}
			set
			{
				SqlGuid report_SalesLink_IDTmp = (SqlGuid)value;
				if(report_SalesLink_IDTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_ID", "Report_SalesLink_ID can't be NULL");
				}
				_report_SalesLink_ID = value;
			}
		}

        public SqlGuid Report_SalesLink_ProjectID
        {
            get
            {
                return _report_SalesLink_ProjectID;
            }
            set
            {
                _report_SalesLink_ProjectID = value;
            }
        }


		public SqlInt32 Report_SalesLink_ExchangeTypeID
		{
			get
			{
				return _report_SalesLink_ExchangeTypeID;
			}
			set
			{
				SqlInt32 report_SalesLink_ExchangeTypeIDTmp = (SqlInt32)value;
				if(report_SalesLink_ExchangeTypeIDTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_ExchangeTypeID", "Report_SalesLink_ExchangeTypeID can't be NULL");
				}
				_report_SalesLink_ExchangeTypeID = value;
			}
		}


		public SqlInt32 Report_SalesLink_PropertyTypeID
		{
			get
			{
				return _report_SalesLink_PropertyTypeID;
			}
			set
			{
				SqlInt32 report_SalesLink_PropertyTypeIDTmp = (SqlInt32)value;
				if(report_SalesLink_PropertyTypeIDTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_PropertyTypeID", "Report_SalesLink_PropertyTypeID can't be NULL");
				}
				_report_SalesLink_PropertyTypeID = value;
			}
		}


		public SqlDateTime Report_SalesLink_ExchangeDate
		{
			get
			{
				return _report_SalesLink_ExchangeDate;
			}
			set
			{
				SqlDateTime report_SalesLink_ExchangeDateTmp = (SqlDateTime)value;
				if(report_SalesLink_ExchangeDateTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_ExchangeDate", "Report_SalesLink_ExchangeDate can't be NULL");
				}
				_report_SalesLink_ExchangeDate = value;
			}
		}


		public SqlString Report_SalesLink_ReportNO
		{
			get
			{
				return _report_SalesLink_ReportNO;
			}
			set
			{
				SqlString report_SalesLink_ReportNOTmp = (SqlString)value;
				if(report_SalesLink_ReportNOTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_ReportNO", "Report_SalesLink_ReportNO can't be NULL");
				}
				_report_SalesLink_ReportNO = value;
			}
		}


		public SqlString Report_SalesLink_Subscribe
		{
			get
			{
				return _report_SalesLink_Subscribe;
			}
			set
			{
				SqlString report_SalesLink_SubscribeTmp = (SqlString)value;
				if(report_SalesLink_SubscribeTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Subscribe", "Report_SalesLink_Subscribe can't be NULL");
				}
				_report_SalesLink_Subscribe = value;
			}
		}


		public SqlString Report_SalesLink_Operator
		{
			get
			{
				return _report_SalesLink_Operator;
			}
			set
			{
				SqlString report_SalesLink_OperatorTmp = (SqlString)value;
				if(report_SalesLink_OperatorTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Operator", "Report_SalesLink_Operator can't be NULL");
				}
				_report_SalesLink_Operator = value;
			}
		}


		public SqlString Report_SalesLink_SellUnit
		{
			get
			{
				return _report_SalesLink_SellUnit;
			}
			set
			{
				SqlString report_SalesLink_SellUnitTmp = (SqlString)value;
				if(report_SalesLink_SellUnitTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_SellUnit", "Report_SalesLink_SellUnit can't be NULL");
				}
				_report_SalesLink_SellUnit = value;
			}
		}


		public SqlString Report_SalesLink_Buyer
		{
			get
			{
				return _report_SalesLink_Buyer;
			}
			set
			{
				SqlString report_SalesLink_BuyerTmp = (SqlString)value;
				if(report_SalesLink_BuyerTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Buyer", "Report_SalesLink_Buyer can't be NULL");
				}
				_report_SalesLink_Buyer = value;
			}
		}


		public SqlDecimal Report_SalesLink_Area
		{
			get
			{
				return _report_SalesLink_Area;
			}
			set
			{
				SqlDecimal report_SalesLink_AreaTmp = (SqlDecimal)value;
				if(report_SalesLink_AreaTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Area", "Report_SalesLink_Area can't be NULL");
				}
				_report_SalesLink_Area = value;
			}
		}


		public SqlString Report_SalesLink_Discount
		{
			get
			{
				return _report_SalesLink_Discount;
			}
			set
			{
				SqlString report_SalesLink_DiscountTmp = (SqlString)value;
				if(report_SalesLink_DiscountTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Discount", "Report_SalesLink_Discount can't be NULL");
				}
				_report_SalesLink_Discount = value;
			}
		}


		public SqlString Report_SalesLink_PayType
		{
			get
			{
				return _report_SalesLink_PayType;
			}
			set
			{
				SqlString report_SalesLink_PayTypeTmp = (SqlString)value;
				if(report_SalesLink_PayTypeTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_PayType", "Report_SalesLink_PayType can't be NULL");
				}
				_report_SalesLink_PayType = value;
			}
		}


		public SqlDecimal Report_SalesLink_Price
		{
			get
			{
				return _report_SalesLink_Price;
			}
			set
			{
				SqlDecimal report_SalesLink_PriceTmp = (SqlDecimal)value;
				if(report_SalesLink_PriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Price", "Report_SalesLink_Price can't be NULL");
				}
				_report_SalesLink_Price = value;
			}
		}


		public SqlDecimal Report_SalesLink_Margins
		{
			get
			{
				return _report_SalesLink_Margins;
			}
			set
			{
				SqlDecimal report_SalesLink_MarginsTmp = (SqlDecimal)value;
				if(report_SalesLink_MarginsTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Margins", "Report_SalesLink_Margins can't be NULL");
				}
				_report_SalesLink_Margins = value;
			}
		}


		public SqlDecimal Report_SalesLink_AgencyCost
		{
			get
			{
				return _report_SalesLink_AgencyCost;
			}
			set
			{
				SqlDecimal report_SalesLink_AgencyCostTmp = (SqlDecimal)value;
				if(report_SalesLink_AgencyCostTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_AgencyCost", "Report_SalesLink_AgencyCost can't be NULL");
				}
				_report_SalesLink_AgencyCost = value;
			}
		}


		public SqlDecimal Report_SalesLink_CancelComm
		{
			get
			{
				return _report_SalesLink_CancelComm;
			}
			set
			{
				SqlDecimal report_SalesLink_CancelCommTmp = (SqlDecimal)value;
				if(report_SalesLink_CancelCommTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_CancelComm", "Report_SalesLink_CancelComm can't be NULL");
				}
				_report_SalesLink_CancelComm = value;
			}
		}


		public SqlDecimal Report_SalesLink_OriginalArea
		{
			get
			{
				return _report_SalesLink_OriginalArea;
			}
			set
			{
				SqlDecimal report_SalesLink_OriginalAreaTmp = (SqlDecimal)value;
				if(report_SalesLink_OriginalAreaTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_OriginalArea", "Report_SalesLink_OriginalArea can't be NULL");
				}
				_report_SalesLink_OriginalArea = value;
			}
		}


		public SqlDecimal Report_SalesLink_OriginalPrice
		{
			get
			{
				return _report_SalesLink_OriginalPrice;
			}
			set
			{
				SqlDecimal report_SalesLink_OriginalPriceTmp = (SqlDecimal)value;
				if(report_SalesLink_OriginalPriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_OriginalPrice", "Report_SalesLink_OriginalPrice can't be NULL");
				}
				_report_SalesLink_OriginalPrice = value;
			}
		}


		public SqlString Report_SalesLink_BarchSalse
		{
			get
			{
				return _report_SalesLink_BarchSalse;
			}
			set
			{
				SqlString report_SalesLink_BarchSalseTmp = (SqlString)value;
				if(report_SalesLink_BarchSalseTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_BarchSalse", "Report_SalesLink_BarchSalse can't be NULL");
				}
				_report_SalesLink_BarchSalse = value;
			}
		}


		public SqlString Report_SalesLink_Variations
		{
			get
			{
				return _report_SalesLink_Variations;
			}
			set
			{
				SqlString report_SalesLink_VariationsTmp = (SqlString)value;
				if(report_SalesLink_VariationsTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Variations", "Report_SalesLink_Variations can't be NULL");
				}
				_report_SalesLink_Variations = value;
			}
		}


		public SqlString Report_SalesLink_IDNumber
		{
			get
			{
				return _report_SalesLink_IDNumber;
			}
			set
			{
				SqlString report_SalesLink_IDNumberTmp = (SqlString)value;
				if(report_SalesLink_IDNumberTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_IDNumber", "Report_SalesLink_IDNumber can't be NULL");
				}
				_report_SalesLink_IDNumber = value;
			}
		}


		public SqlString Report_SalesLink_Tel
		{
			get
			{
				return _report_SalesLink_Tel;
			}
			set
			{
				SqlString report_SalesLink_TelTmp = (SqlString)value;
				if(report_SalesLink_TelTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Tel", "Report_SalesLink_Tel can't be NULL");
				}
				_report_SalesLink_Tel = value;
			}
		}


		public SqlString Report_SalesLink_CustomerAddress
		{
			get
			{
				return _report_SalesLink_CustomerAddress;
			}
			set
			{
				SqlString report_SalesLink_CustomerAddressTmp = (SqlString)value;
				if(report_SalesLink_CustomerAddressTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_CustomerAddress", "Report_SalesLink_CustomerAddress can't be NULL");
				}
				_report_SalesLink_CustomerAddress = value;
			}
		}


		public SqlString Report_SalesLink_PostCode
		{
			get
			{
				return _report_SalesLink_PostCode;
			}
			set
			{
				SqlString report_SalesLink_PostCodeTmp = (SqlString)value;
				if(report_SalesLink_PostCodeTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_PostCode", "Report_SalesLink_PostCode can't be NULL");
				}
				_report_SalesLink_PostCode = value;
			}
		}


		public SqlDecimal Report_SalesLink_SalesArea
		{
			get
			{
				return _report_SalesLink_SalesArea;
			}
			set
			{
				SqlDecimal report_SalesLink_SalesAreaTmp = (SqlDecimal)value;
				if(report_SalesLink_SalesAreaTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_SalesArea", "Report_SalesLink_SalesArea can't be NULL");
				}
				_report_SalesLink_SalesArea = value;
			}
		}


		public SqlDecimal Report_SalesLink_OriginalContractPrice
		{
			get
			{
				return _report_SalesLink_OriginalContractPrice;
			}
			set
			{
				SqlDecimal report_SalesLink_OriginalContractPriceTmp = (SqlDecimal)value;
				if(report_SalesLink_OriginalContractPriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_OriginalContractPrice", "Report_SalesLink_OriginalContractPrice can't be NULL");
				}
				_report_SalesLink_OriginalContractPrice = value;
			}
		}


		public SqlDateTime Report_SalesLink_BigDate
		{
			get
			{
				return _report_SalesLink_BigDate;
			}
			set
			{
				SqlDateTime report_SalesLink_BigDateTmp = (SqlDateTime)value;
				if(report_SalesLink_BigDateTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_BigDate", "Report_SalesLink_BigDate can't be NULL");
				}
				_report_SalesLink_BigDate = value;
			}
		}


		public SqlDecimal Report_SalesLink_BigPrice
		{
			get
			{
				return _report_SalesLink_BigPrice;
			}
			set
			{
				SqlDecimal report_SalesLink_BigPriceTmp = (SqlDecimal)value;
				if(report_SalesLink_BigPriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_BigPrice", "Report_SalesLink_BigPrice can't be NULL");
				}
				_report_SalesLink_BigPrice = value;
			}
		}


		public SqlDecimal Report_SalesLink_BigSumPrice
		{
			get
			{
				return _report_SalesLink_BigSumPrice;
			}
			set
			{
				SqlDecimal report_SalesLink_BigSumPriceTmp = (SqlDecimal)value;
				if(report_SalesLink_BigSumPriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_BigSumPrice", "Report_SalesLink_BigSumPrice can't be NULL");
				}
				_report_SalesLink_BigSumPrice = value;
			}
		}


		public SqlDateTime Report_SalesLink_ContractDate
		{
			get
			{
				return _report_SalesLink_ContractDate;
			}
			set
			{
				SqlDateTime report_SalesLink_ContractDateTmp = (SqlDateTime)value;
				if(report_SalesLink_ContractDateTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_ContractDate", "Report_SalesLink_ContractDate can't be NULL");
				}
				_report_SalesLink_ContractDate = value;
			}
		}


		public SqlDecimal Report_SalesLink_ContractArea
		{
			get
			{
				return _report_SalesLink_ContractArea;
			}
			set
			{
				SqlDecimal report_SalesLink_ContractAreaTmp = (SqlDecimal)value;
				if(report_SalesLink_ContractAreaTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_ContractArea", "Report_SalesLink_ContractArea can't be NULL");
				}
				_report_SalesLink_ContractArea = value;
			}
		}


		public SqlDecimal Report_SalesLink_ContractPrice
		{
			get
			{
				return _report_SalesLink_ContractPrice;
			}
			set
			{
				SqlDecimal report_SalesLink_ContractPriceTmp = (SqlDecimal)value;
				if(report_SalesLink_ContractPriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_ContractPrice", "Report_SalesLink_ContractPrice can't be NULL");
				}
				_report_SalesLink_ContractPrice = value;
			}
		}


		public SqlDecimal Report_SalesLink_ContractSumPrice
		{
			get
			{
				return _report_SalesLink_ContractSumPrice;
			}
			set
			{
				SqlDecimal report_SalesLink_ContractSumPriceTmp = (SqlDecimal)value;
				if(report_SalesLink_ContractSumPriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_ContractSumPrice", "Report_SalesLink_ContractSumPrice can't be NULL");
				}
				_report_SalesLink_ContractSumPrice = value;
			}
		}


		public SqlDecimal Report_SalesLink_LoanAmount
		{
			get
			{
				return _report_SalesLink_LoanAmount;
			}
			set
			{
				SqlDecimal report_SalesLink_LoanAmountTmp = (SqlDecimal)value;
				if(report_SalesLink_LoanAmountTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_LoanAmount", "Report_SalesLink_LoanAmount can't be NULL");
				}
				_report_SalesLink_LoanAmount = value;
			}
		}


		public SqlDateTime Report_SalesLink_ContractLoansDate
		{
			get
			{
				return _report_SalesLink_ContractLoansDate;
			}
			set
			{
				SqlDateTime report_SalesLink_ContractLoansDateTmp = (SqlDateTime)value;
				if(report_SalesLink_ContractLoansDateTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_ContractLoansDate", "Report_SalesLink_ContractLoansDate can't be NULL");
				}
				_report_SalesLink_ContractLoansDate = value;
			}
		}


		public SqlDateTime Report_SalesLink_LentDate
		{
			get
			{
				return _report_SalesLink_LentDate;
			}
			set
			{
				SqlDateTime report_SalesLink_LentDateTmp = (SqlDateTime)value;
				if(report_SalesLink_LentDateTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_LentDate", "Report_SalesLink_LentDate can't be NULL");
				}
				_report_SalesLink_LentDate = value;
			}
		}


		public SqlDecimal Report_SSalesLink_LentAmount
		{
			get
			{
				return _report_SSalesLink_LentAmount;
			}
			set
			{
				SqlDecimal report_SSalesLink_LentAmountTmp = (SqlDecimal)value;
				if(report_SSalesLink_LentAmountTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SSalesLink_LentAmount", "Report_SSalesLink_LentAmount can't be NULL");
				}
				_report_SSalesLink_LentAmount = value;
			}
		}


		public SqlDecimal Report_SalesLink_TotalReceipt
		{
			get
			{
				return _report_SalesLink_TotalReceipt;
			}
			set
			{
				SqlDecimal report_SalesLink_TotalReceiptTmp = (SqlDecimal)value;
				if(report_SalesLink_TotalReceiptTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_TotalReceipt", "Report_SalesLink_TotalReceipt can't be NULL");
				}
				_report_SalesLink_TotalReceipt = value;
			}
		}


		public SqlDecimal Report_SalesLink_RestHouse
		{
			get
			{
				return _report_SalesLink_RestHouse;
			}
			set
			{
				SqlDecimal report_SalesLink_RestHouseTmp = (SqlDecimal)value;
				if(report_SalesLink_RestHouseTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_RestHouse", "Report_SalesLink_RestHouse can't be NULL");
				}
				_report_SalesLink_RestHouse = value;
			}
		}


		public SqlDateTime Report_SalesLink_GiveHouseDate
		{
			get
			{
				return _report_SalesLink_GiveHouseDate;
			}
			set
			{
				SqlDateTime report_SalesLink_GiveHouseDateTmp = (SqlDateTime)value;
				if(report_SalesLink_GiveHouseDateTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_GiveHouseDate", "Report_SalesLink_GiveHouseDate can't be NULL");
				}
				_report_SalesLink_GiveHouseDate = value;
			}
		}


		public SqlString Report_SalesLink_Departments
		{
			get
			{
				return _report_SalesLink_Departments;
			}
			set
			{
				SqlString report_SalesLink_DepartmentsTmp = (SqlString)value;
				if(report_SalesLink_DepartmentsTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Departments", "Report_SalesLink_Departments can't be NULL");
				}
				_report_SalesLink_Departments = value;
			}
		}


		public SqlString Report_SalesLink_Branches
		{
			get
			{
				return _report_SalesLink_Branches;
			}
			set
			{
				SqlString report_SalesLink_BranchesTmp = (SqlString)value;
				if(report_SalesLink_BranchesTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_Branches", "Report_SalesLink_Branches can't be NULL");
				}
				_report_SalesLink_Branches = value;
			}
		}


		public SqlString Report_SalesLink_SalesNames
		{
			get
			{
				return _report_SalesLink_SalesNames;
			}
			set
			{
				SqlString report_SalesLink_SalesNamesTmp = (SqlString)value;
				if(report_SalesLink_SalesNamesTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_SalesNames", "Report_SalesLink_SalesNames can't be NULL");
				}
				_report_SalesLink_SalesNames = value;
			}
		}


		public SqlString Report_SalesLink_SalesNumber
		{
			get
			{
				return _report_SalesLink_SalesNumber;
			}
			set
			{
				SqlString report_SalesLink_SalesNumberTmp = (SqlString)value;
				if(report_SalesLink_SalesNumberTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_SalesLink_SalesNumber", "Report_SalesLink_SalesNumber can't be NULL");
				}
				_report_SalesLink_SalesNumber = value;
			}
		}


		public SqlInt32 Report_Plan_Audit
		{
			get
			{
				return _report_Plan_Audit;
			}
			set
			{
				SqlInt32 report_Plan_AuditTmp = (SqlInt32)value;
				if(report_Plan_AuditTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Plan_Audit", "Report_Plan_Audit can't be NULL");
				}
				_report_Plan_Audit = value;
			}
		}
		#endregion
	}
}
